import Vue from 'vue'
import Router from 'vue-router'
import main from '../views/main'
import login from '../views/login'
import resigter from "../views/resigter";
import indexView from '@/views/indexView';
import home from '@/views/home'

Vue.use(Router);
export default new Router({
  module:history,
  routes:[
    {
      path:'/',
      name:'Main',
      component:main,
      children:[
        {
          path:'',
          component:indexView
        },
        {
          path:'/one',
          name:'one',
          component: () =>  import("../views/one.vue")
        },
        {
          path:'/car',
          name:'car',
          component: () =>  import("../views/car.vue")
        },
        {
          path:'/qianbao',
          name:'qianbao',
          component: () =>  import("../views/qianbao.vue")
        },
        {
          path:'/vip',
          name:'vip',
          component: () =>  import("../views/vip.vue")
        }
      ]
    },
    {
      path:'/login',
      name:'Login',
      component:login
    },
    {
      path:'/home',
      name:'Home',
      component:home
    },
    {
      path:'/resigter',
      name:'resigter',
      component:resigter
    }
  ]
});
